# -*- coding:utf-8 -*-
class Solution:
    def FirstNotRepeatingChar(self, s):
        # write code here
        if len(s)==0:
            return -1
        res=[]
        for i in range(len(s)):
            if s.count(s[i])==1:
                res.append(i)
                return res[0]
        return -1